package com.macro.mall.portal.controller;

import com.macro.mall.common.api.CommonResult;
import com.macro.mall.model.SmsFlashPromotion;
import com.macro.mall.portal.service.SmsFlashPromotionService;
import com.macro.mall.portal.vo.SmsFlashPromotionVO;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "SmsFlashPromotionController", description = "限时活动管理")
@RequestMapping("/flashPromotion")
public class SmsFlashPromotionController {
    @Autowired
    private SmsFlashPromotionService flashPromotionService;
    @GetMapping("/list")
    private CommonResult<List<SmsFlashPromotion>> list(){
        return CommonResult.success(flashPromotionService.list());
    }
}
